<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@page import ="java.io.*"%>
<%@page import ="java.sql.*"%>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="cart.*"%>
<%@ page import="java.util.Random"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hello World!</h1>

              
<%      
    String userid = "desmondtsoi";
    chkValidUserId chkvuid = new chkValidUserId(userid);
    if (chkvuid.isValid()){
        out.println("<p> Successful </p>");
    }
    else{
        String getValidUserid[] = new String[2];
        
        getValidUserid = chkvuid.getValidUserid();
        
        out.println("<p> use others:" + getValidUserid[0] + " or "+getValidUserid[1] + "</p>");
   }
%>